package com.ican.oc.quartz;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.ican.oc.datasyn.OcDataSynService;

public class OcDataSynJob {
    private final static Logger logger = LoggerFactory.getLogger(OcDataSynJob.class);
    private OcDataSynService ocDataSynService;
    
    public void ocDataSyn(){
        try{
            ocDataSynService.dataSynAuto();
        }catch(Exception e){
            logger.error(e.getMessage(), e);
        }
    }
    
    @Resource
    public void setOcDataSynService(OcDataSynService ocDataSynService) {
        this.ocDataSynService = ocDataSynService;
    }
}
